<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;padding: 0;
        }
        body{
            background-color: #ede9e6;
        }
        #app{
            width: 320px;
            background-color: #fff;
            margin: 0 auto;
        }
        .top{
            text-align: left;
            line-height: 40px;
            background-color: #e9185a;
            color: #fff;
            padding-left: 10px;
        }
        div{
            color: gray;
            text-align: center;

        }
        .title{
            line-height: 30px;
            text-align: left;
        }
        .title span{
            display: inline-block;
            margin: 5px;
            background-color: #3e4041;
            width: 20px;
            line-height: 20px;
            text-align: center;
            color: #fff;
            border-radius: 50%;
        }
        li{
            list-style: none;
            border-bottom: 1px dashed gray;
            padding-bottom: 10px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="top">
            大家都喜欢的彩妆
        </div>
        <ul>
            <li v-for="(item,index) in arr">
                <div class="title">
                    <span>{{item.num}}</span>{{item.name}}
                </div>
                <div class="img">
                    <img :src="item.imgUrl" alt="">
                </div>
                <div>
                    {{item.desc}}
                </div>
            </li>
        </ul>
    </div>
</body>
<script src="js/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            arr: []
        },
        mounted(){
            this.arr = [{
                num: 1,
                name: 'Za姬芮新能真皙美白隔离霜 35g',
                imgUrl: "image/icon-1.jpg",
                desc: "￥59.90 最近13403人购买"
            }, {
                num: 2,
                name: '美宝莲精纯矿物奇妙新颜乳霜BB霜 30ml',
                imgUrl: "image/icon-2.jpg",
                desc: "￥89.00 最近13610人购买"
            }, {
                num: 3,
                name: '菲奥娜水漾CC霜40g',
                imgUrl: "image/icon-3.jpg",
                desc: "￥59.90 最近13403人购买"
            }, {
                num: 4,
                name: 'HC 蝶翠诗橄榄卸妆油 200ml',
                imgUrl: "image/icon-4.jpg",
                desc: "￥169.00 最近16757人购买"
            }]
        }
    })
</script>

</html>